import request from "@/utils/request";

// 查询全部合伙人
export function getAppAgentList(query) {
  return request({
    url: "/app/getAppAgentList",
    method: "get",
    params: query
  });
}

//   添加合伙人
export function addAppAgent(data) {
  return request({
    url: "/app/addAppAgent",
    method: "post",
    data,
  });
}


// 查询全部合伙人申请记录
export function getAppAgentRecordList(query) {
    return request({
      url: "/app/getAppAgentRecordList",
      method: "get",
      params: query
    });
  }

  // 查询一条合伙人申请记录
  export function getAppAgentRecordInfo(query) {
    return request({
      url: "/app/getAppAgentRecordInfo",
      method: "get",
      params: query
    });
  }

  // 添加合伙人申请记录
  export function addAppAgentRecord(data) {
    return request({
      url: "/app/addAppAgentRecord",
      method: "post",
      data,
    });
  }

  // 修改合伙人申请记录
  export function updateAppAgentRecord(data) {
    return request({
      url: "/app/updateAppAgentRecord",
      method: "post",
      data,
    });
  }

  // 删除合伙人申请记录
  export function deleteAppAgentRecord(data) {
    return request({
      url: "/app/deleteAppAgentRecord",
      method: "post",
      data,
    });
  }

//   合伙人申请审核
export function examineAppAgentRecordFront(data) {
    return request({
      url: "/app/examineAppAgentRecordFront",
      method: "post",
      data,
    });
  }
